package com.geekbang.test;

import java.util.HashMap;

public class BaseShareData extends ShareData {
	final String DONE = "done";
	void initSignals() {
		signals = new HashMap<String, Object>();
	}
	boolean getSig() {
		if (signals != null && signals.get(DONE) != null) {
			return ((Boolean)signals.get(DONE)).booleanValue();
		}
		return false;
	}
	void setSig(Boolean sig) {
		Boolean s = (Boolean)signals.get(DONE);
		if (s == null) {
			signals.put(DONE, sig);
		} else {
			signals.put(DONE, s);
		}
	}
}
